/*
 * @Description: 九九乘法表
 * @Author: zzj
 * @Date: 2021-09-01 19:54:56
 * @LastEditors: zzj
 * @LastEditTime: 2021-09-02 11:20:51
 */

//九九乘法表

for(var i=1;i<10;i++){
    var str1="";
    for(var j=1;j<=i;j++){
        str1 += j + "*" + i + "=" + i*j + "\t";
    }
    console.log(str1);
}

console.log("\n\n")

for(var s=9;s>0;s--){
    var str2="";
    for(var d=1;d<=s;d++){
        str2 += d + "*" + s + "=" + s*d + "\t";
    }
    console.log(str2);
}
